package com.yimo.chromedriver;

import lombok.Data;

import java.io.File;

/**
 * create by jsm on 2018/10/8
 */
@Data
public class FileDesc {
    private boolean directory;
    private String name;
    private String absolutePath;

    public FileDesc build(File file) {
        if (file != null) {
            this.setDirectory(file.isDirectory());
            this.setAbsolutePath(file.getAbsolutePath());
            this.setName(file.getName());
        }
        return this;

    }


}
